package cn.wit.test;

public class Student {
	private String name;
	private int age;
	private String content;
	
	//无参
	public Student() {
		
	}
	
	//有参
	public Student(String name,int age,String content) {
		this.age=age;
		this.content=content;
		this.name=name;
	}
	
	
	//吃饭
	public void eat() {
		System.out.println("年龄为"+age+"的"+name+"同学正在吃饭");
	}
	
	//学习
	public void study() {
		System.out.println("年龄为"+age+"的"+name+"同学"+content);
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}

}
